<style>
    a.report_link {
        color: #39c;
        font-size: 12px;
    }
    
    a.report_link.active {
        font-weight: bold;
        color: #333;
    }
</style>

<ul id="browser" class="filetree treeview">
    <?php 
    foreach($report_categories as $report_cat) {
        echo "<li class='' data-group-name='{$report_cat['ReportCategory']['name']}'>";
            echo "<span>" . $report_cat['ReportCategory']['name'] . "</span>";

            echo "<ul>";

            foreach($report_cat['Report'] as $report) {
                echo "<li>";
                echo "<span><a class='report_link' title='{$report['title']}' data-id='{$report['id']}' href='" . $this->Html->url(array('controller' => 'reports', 'action' => 'view', $report['id'])) . "'>" . $report['name'] . "</a></span>";
                echo "</li>";
            }

            echo "</ul>";
        echo "</li>";
    }
    ?>
    
<!--    <li class="expandable">
        <span>Members</span>
        <ul>
            <li>
                <span><a href="<?php echo $this->Html->url(array('controller' => 'members', 'action' => 'search?status=active')); ?>">Active Members</a></span>
            </li>            
            
             Members added within the last 30 days 
            <li><span><a href="#">Recent Members</a></span></li>
            <li><span><a href="#">Recent Visitors</a></span></li>
        </ul>
    </li>
    <li><span>Groups</span></li>
    <li>
        <span>Age Bands</span>
        <ul>
            <li><span><a href="#">0 - 12 years</a></span></li>
            <li><span><a href="#">13 - 19 years</a></span></li>
            <li><span><a href="#">20 - 30 years</a></span></li>
            <li><span><a href="#">31 - 49 years</a></span></li>
            <li><span><a href="#">50 - 65 years</a></span></li>
            <li><span><a href="#">66 - 80 years</a></span></li>
            <li><span><a href="#">81+ years</a></span></li>
        </ul>
    </li>
    <li><span>Other Groups</span></li>
    <li><span>Contributions</span></li>-->
</ul>

<?php echo $this->Html->css('jquery.treeview/jquery.treeview'); ?>
<?php echo $this->Html->script('plugins/jquery.treeview/jquery.treeview'); ?>
